<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>RGBShiftShader - Three.js Docs</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<script src="../scripts/highlight.min.js"></script>
	<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
	<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
	<h1 translate="no">RGBShiftShader</h1>
		<section>
			<header>
			</header>
			<article>
				<h2 class="subsection-title">Import</h2>
				<p><span translate="no">RGBShiftShader</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
				<pre><code class="language-js">import { RGBShiftShader } from 'three/addons/shaders/RGBShiftShader.js';</code></pre>
				<div class="container-overview">
				</div>
				<h2 class="subsection-title">Properties</h2>
				<div class="member">
					<h3 class="name" id="~RGBShiftShader" translate="no">.<a href="#~RGBShiftShader">RGBShiftShader</a><span class="type-signature"> : <a href="ShaderMaterial.html#~Shader">ShaderMaterial~Shader</a></span> <span class="type-signature">(inner, constant) </span></h3>
					<div class="description">
						<p>RGB Shift Shader
Shifts red and blue channels from center in opposite directions
Ported from https://web.archive.org/web/20090820185047/http://kriss.cx/tom/2009/05/rgb-shift/
by Tom Butterworth / https://web.archive.org/web/20090810054752/http://kriss.cx/tom/</p>
<p>amount: shift distance (1 is width of input)
angle: shift angle in radians</p>
					</div>
				</div>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/shaders/RGBShiftShader.js" translate="no" target="_blank" rel="noopener">examples/jsm/shaders/RGBShiftShader.js</a>
				</p>
			</article>
		</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>